<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script>
   //1.用户输入
   //2.内部处理保存数据
   //3.打印输出
    let name= prompt(`请输入你的姓名`)
    
    document.write(name)
    
    </script>
</body>
</html>